The pkg-config package refered no longer exists,
and currently only libvala provides a vapidir in pkg-config,
and this package is versioned and changes all the time.
Other projects just use $(datadir)/vala/vapi, so we do the same
babl-$(BABL_API_VERSION).vapi: Babl-$(BABL_API_VERSION).gir
$(VAPIGEN) --library=babl-$(BABL_API_VERSION) Babl-$(BABL_API_VERSION).gir
-vapidir=@vapidir@
+vapidir=$(datadir)/vala/vapi
vapi_DATA = babl-$(BABL_API_VERSION).vapi
endif # HAVE_VALA
have_vala=$have_vapigen
AM_CONDITIONAL(HAVE_VALA, test "$have_vala" = "yes")
-vapidir=$(pkg-config --variable vapidir vala-1.0)
-AC_SUBST(vapidir)
-
dnl The symbol BABL_UNSTABLE is defined above for substitution in
dnl Makefiles and conditionally defined here as a preprocessor symbol
dnl and automake conditional.